
using System.Collections.Generic;
using UnityEngine;
    /// <summary>
    /// Animator
    /// </summary>
    public partial class AbsESF_Animator
    {
        /// <summary>
        /// Animator
        /// </summary>
        public Animator animator { get; private set; }
        /// <summary>
        /// 原始updateMode
        /// </summary>
        AnimatorUpdateMode mOriginMode = AnimatorUpdateMode.Normal;
        /// <summary>
        /// 绑定Animator
        /// </summary>
        /// <param name="_animator">Animator</param>
        public void BindAnimator(Animator _animator)
        {
            animator = _animator;
            if (_animator != null)
            {
                mOriginMode = _animator.updateMode;
            }
            OnAfterBindAnimator(_animator);
        }
        /// <summary>
        /// 绑定Animator
        /// </summary>
        /// <param name="_animator">Animator</param>
        protected virtual void OnAfterBindAnimator(Animator _animator) { }        
    }